
#include <BWidget>
#include <BStyle>
#include <BLayout>
#include <BCursor>
#include <BFont>
#include <BMargins>
#include <BPerchs>
#include <BStyle>
#include <BChangeEvent>
#include "member_BEvent.h"

using namespace BWE;

BChangeEvent::BChangeEvent(Change change) : BEvent(Event_Change)
{
	event_member(this)->changeType = change;
}
BChangeEvent::~BChangeEvent()
{

}

void BChangeEvent::setChange(Change change)
{
	event_member(this)->changeType = change;
}
Change BChangeEvent::change() const
{
	return event_member(this)->changeType;
}

void BChangeEvent::setBorder(int border)
{
	event_member(this)->changeType = Change_Border;
	event_member(this)->value = border;
}
int BChangeEvent::border() const
{
	return event_member(this)->value;
}

void BChangeEvent::setMargins(const BMargins& margins)
{
	event_member(this)->changeType = Change_Margin;
	event_member(this)->value = margins;
}
const BMargins& BChangeEvent::margins() const
{
	return event_member(this)->value;
}

void BChangeEvent::setPerchs(const BPerchs& perchs)
{
	event_member(this)->changeType = Change_Perch;
	event_member(this)->value = perchs;
}
const BPerchs& BChangeEvent::perchs() const
{
	return event_member(this)->value;
}

void BChangeEvent::setTitle(const BString& title)
{
	event_member(this)->changeType = Change_Title;
	event_member(this)->value = title;
}
const BString& BChangeEvent::title() const
{
	return event_member(this)->value;
}

void BChangeEvent::setTips(const BString& tips)
{
	event_member(this)->changeType = Change_ToolTip;
	event_member(this)->value = tips;
}
const BString& BChangeEvent::tips() const
{
	return event_member(this)->value;
}

void BChangeEvent::setLayered(bool layered)
{
	event_member(this)->changeType = Change_Layered;
	event_member(this)->value = layered;
}
bool BChangeEvent::layered() const
{
	return event_member(this)->value;
}

void BChangeEvent::setModal(bool modal)
{
	event_member(this)->changeType = Change_Modal;
	event_member(this)->value = modal;
}
bool BChangeEvent::modal() const
{
	return event_member(this)->value;
}

void BChangeEvent::setCursor(BCursor* cursor)
{
	event_member(this)->changeType = Change_Cursor;
	event_member(this)->value = cursor;
}
const BCursor* BChangeEvent::cursor() const
{
	return event_member(this)->value;
}

